package com.yhao.stocknew.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 每天交易概览
 * </p>
 *
 * @author yhao
 * @since 2023-12-15
 */
@ApiModel(value="DayInfo对象", description="每天交易概览")
@NoArgsConstructor
@AllArgsConstructor
public class DayInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "代码")
    private String dCode;

    @ApiModelProperty(value = "名称")
    private String dName;

    @ApiModelProperty(value = "现价")
    private BigDecimal nowPrice;

    @ApiModelProperty(value = "涨跌幅")
    private BigDecimal rfa;

    @ApiModelProperty(value = "涨跌")
    private BigDecimal rf;

    @ApiModelProperty(value = "涨速")
    private BigDecimal rfs;

    @ApiModelProperty(value = "换手")
    private BigDecimal changeHand;

    @ApiModelProperty(value = "量比")
    private BigDecimal qRatio;

    @ApiModelProperty(value = "振幅")
    private BigDecimal amplitude;

    @ApiModelProperty(value = "成交额(亿)")
    private BigDecimal dealAmount;

    @ApiModelProperty(value = "流通股（亿）")
    private BigDecimal circulateNumber;

    @ApiModelProperty(value = "流通市值（亿）")
    private BigDecimal marketValue;

    @ApiModelProperty(value = "市盈率")
    private BigDecimal peRatio;

    @ApiModelProperty(value = "交易日期")
    private String dDate;

    @ApiModelProperty(value = "统计时间")
    private LocalDateTime statTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getdCode() {
        return dCode;
    }

    public void setdCode(String dCode) {
        this.dCode = dCode;
    }
    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }
    public BigDecimal getNowPrice() {
        return nowPrice;
    }

    public void setNowPrice(BigDecimal nowPrice) {
        this.nowPrice = nowPrice;
    }
    public BigDecimal getRfa() {
        return rfa;
    }

    public void setRfa(BigDecimal rfa) {
        this.rfa = rfa;
    }
    public BigDecimal getRf() {
        return rf;
    }

    public void setRf(BigDecimal rf) {
        this.rf = rf;
    }
    public BigDecimal getRfs() {
        return rfs;
    }

    public void setRfs(BigDecimal rfs) {
        this.rfs = rfs;
    }
    public BigDecimal getChangeHand() {
        return changeHand;
    }

    public void setChangeHand(BigDecimal changeHand) {
        this.changeHand = changeHand;
    }
    public BigDecimal getqRatio() {
        return qRatio;
    }

    public void setqRatio(BigDecimal qRatio) {
        this.qRatio = qRatio;
    }
    public BigDecimal getAmplitude() {
        return amplitude;
    }

    public void setAmplitude(BigDecimal amplitude) {
        this.amplitude = amplitude;
    }
    public BigDecimal getDealAmount() {
        return dealAmount;
    }

    public void setDealAmount(BigDecimal dealAmount) {
        this.dealAmount = dealAmount;
    }
    public BigDecimal getCirculateNumber() {
        return circulateNumber;
    }

    public void setCirculateNumber(BigDecimal circulateNumber) {
        this.circulateNumber = circulateNumber;
    }
    public BigDecimal getMarketValue() {
        return marketValue;
    }

    public void setMarketValue(BigDecimal marketValue) {
        this.marketValue = marketValue;
    }
    public BigDecimal getPeRatio() {
        return peRatio;
    }

    public void setPeRatio(BigDecimal peRatio) {
        this.peRatio = peRatio;
    }
    public String getdDate() {
        return dDate;
    }

    public void setdDate(String dDate) {
        this.dDate = dDate;
    }
    public LocalDateTime getStatTime() {
        return statTime;
    }

    public void setStatTime(LocalDateTime statTime) {
        this.statTime = statTime;
    }

    @Override
    public String toString() {
        return "DayInfo{" +
        "id=" + id +
        ", dCode=" + dCode +
        ", dName=" + dName +
        ", nowPrice=" + nowPrice +
        ", rfa=" + rfa +
        ", rf=" + rf +
        ", rfs=" + rfs +
        ", changeHand=" + changeHand +
        ", qRatio=" + qRatio +
        ", amplitude=" + amplitude +
        ", dealAmount=" + dealAmount +
        ", circulateNumber=" + circulateNumber +
        ", marketValue=" + marketValue +
        ", peRatio=" + peRatio +
        ", dDate=" + dDate +
        ", statTime=" + statTime +
        "}";
    }

    public DayInfo(String dCode, String dName, BigDecimal nowPrice, BigDecimal rfa, BigDecimal rf, BigDecimal rfs, BigDecimal changeHand, BigDecimal qRatio, BigDecimal amplitude, BigDecimal dealAmount, BigDecimal circulateNumber, BigDecimal marketValue, BigDecimal peRatio, String dDate, LocalDateTime statTime) {
        this.dCode = dCode;
        this.dName = dName;
        this.nowPrice = nowPrice;
        this.rfa = rfa;
        this.rf = rf;
        this.rfs = rfs;
        this.changeHand = changeHand;
        this.qRatio = qRatio;
        this.amplitude = amplitude;
        this.dealAmount = dealAmount;
        this.circulateNumber = circulateNumber;
        this.marketValue = marketValue;
        this.peRatio = peRatio;
        this.dDate = dDate;
        this.statTime = statTime;
    }
}
